<script setup lang="ts">
import { Modal } from 'ant-design-vue';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

// Constants
dayjs.locale('zh-cn');

// Defaults
Modal.props.maskClosable.default = false;
</script>

<template>
    <a-config-provider
        :locale="zhCN"
        :theme="{
            token: {
                borderRadius: 4,
                colorPrimary: '#1d99f2',
                colorPrimaryBg: '#e5f4ff',
                colorText: '#1d2129',
            },
        }"
    >
        <RouterView />
    </a-config-provider>
</template>
